Platform Explorer / Nuxeo Platform 6.0

Component DublinCoreStorageService

Documentation

The DublinCoreStorageService listen to Core event DOCUMENT_UPDATED and DOCUMENT_CREATED. If the target document has the dublincore schema, this service will then update some meta-data. The fields calculated by this event listener are: - the creation date - the modification date - the contributors list

The DublinCoreStorageService exposes an simple api for updating meta-data.

Implementation

Class: org.nuxeo.ecm.platform.dublincore.service.DublinCoreStorageService

Contributions

XML Source

<?xml version="1.0"?>
<component name="DublinCoreStorageService" version="1.0.0">

  <implementation
    class="org.nuxeo.ecm.platform.dublincore.service.DublinCoreStorageService" />

  <documentation>
    The DublinCoreStorageService listen to Core event DOCUMENT_UPDATED and
    DOCUMENT_CREATED. If the target document has the dublincore schema, this
    service will then update some meta-data. The fields calculated by this event
    listener are: - the creation date - the modification date - the
    contributors list

    The DublinCoreStorageService exposes an simple api for updating meta-data.

    @author Thierry Delprat (td@nuxeo.com)
  </documentation>

  <extension target="org.nuxeo.ecm.core.event.EventServiceComponent" point="listener">
    <documentation>
      Listen for Core event DOCUMENT_UPDATED and DOCUMENT_CREATED and call the
      DublinCoreStorageService.

      @author Thierry Delprat (td@nuxeo.com)
    </documentation>

    <listener name="dclistener" async="false" postCommit="false"
        class="org.nuxeo.ecm.platform.dublincore.listener.DublinCoreListener" priority="120">
      <event>documentCreated</event>
      <event>beforeDocumentModification</event>
      <event>documentPublished</event>
      <event>lifecycle_transition_event</event>
    </listener>

  </extension>

</component>